package com.zrwl.poscloud.base.enums;

/**
 * 账簿类型
 */
public class EAccountBusiType {

    /**
     * pos消费业务
     */
    public static final int POS = 1;
    /**
     * 卡片在线充值
     */
    public static final int ONLINERECHARGE = 2;
    /**
     * 卡片现金充值
     */
    public static final int CASHRECHARGE = 3;
    /**
     * VIP在线充值
     */
    public static final int VIPECHARGE = 4;
    /**
     * 在线退款
     */
    public static final int ONLINEREFUND = 9;

    public static String getName(int type) {
        switch (type) {
            case POS:
                return "pos消费";
            case ONLINERECHARGE:
                return "在线充值";
            case CASHRECHARGE:
                return "现金充值";
            case VIPECHARGE:
                return "VIP充值";
            case ONLINEREFUND:
                return "在线退款";
            default:
                return "其他";
        }
    }
}